<template>
    <div class="content">
        新闻详情页
        <div style="margin-top: 20px;">编号: {{id}}</div>
        <div>标题: {{title}}</div>
        <div>内容: {{content}}</div>
    </div>
</template>

<script setup lang="ts">
defineProps(['id', 'title', 'content'])
</script>

<style scoped>
    .content{
        width: calc(85% - 40px);
        border: 1px solid #000;
        border-radius: 20px;
        padding: 20px;
    }
</style>